package com.hk.commons.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * 职务信息表
 * 
 * @author saga
 * 
 */
@Entity
@Table(name = "Duties")
public class Duties implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6617898979860644889L;

	@Id
	@Column(name = "Id", length = 20)
	private Long id;

	/**职务名称*/
	@Column(name = "Name", length = 20)
	private String name;

	@Column(name = "CreatedTS")
	private Long createdts = System.currentTimeMillis();

	@Column(name = "Creator", length = 20)
	private String creator;
	
	/** 部门id */
	@Column(name = "DeptId", length = 10)
	private Long deptId;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getCreatedts() {
		return createdts;
	}

	public void setCreatedts(Long createdts) {
		this.createdts = createdts;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String account) {
		this.creator = account;
	}

	public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}
}
